using System;
using UnityEngine.UIElements;

namespace DA.AnimGraph.Editor {
    internal class InspectorField_Button : InspectorField<Action> {

        Button button;

        protected override void BuildUI() {
            button = new Button();
            button.clicked += source;
            button.text = labelText;
        }

        protected override void DrawUI() {
            Add(button);
        }

    }
}
